#include "mythread.h"
#include <QDebug>
MyThread::MyThread()
{
    this->data=1;
}

void MyThread::run()
{
    while(1){
        qDebug()<<__LINE__<<":"<<data;
        QThread::sleep(2);
    }
}

void MyThread::AcToDataChange(int data)
{
    this->data=data;
}
